package com.ycz.pattern.behaviour.statepattern;

/**
 * @Description
 * @ClassName StopState
 * @Author yanchengzhi
 * @date 2023.11.29 22:43
 */
public class StopState implements State {
    @Override
    public void doAction(Context context) {
        System.out.println("player is in stop state!");
        context.setState(this);
    }

    public String toString() {
        return "Stop State";
    }
}
